package cn.lizemin.fakedata.common;

import lombok.Getter;

/**
 * @author 李泽民
 * @Date 2024/1/19 12:35
 * @Description
 */
@Getter
public enum ResultEnum {

    LOGIN_SUCCESS(200, "登录成功!"),
    SQL_ERROR(501, "sql执行过程中发生了异常"),
    ILLEGAL_PARAM(502, "非法参数！"),
    USER_NOT_EXITS(503, "该用户不存在！"),
    USER_NOT_AUTHENTICATED(504, "用户未认证！"),
    USER_NOT_AUTHORIZED(505, "用户未获取授权！"),

    ;

    private final Integer code;

    private final String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


}
